package com.sample.tdf.dto;

import cn.com.taiji.common.dto.BaseTreeDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;
import java.util.List;

@ApiModel(value = "department对象")
@Data
@NoArgsConstructor
public class DepartmentDTO extends BaseTreeDTO{
        private static final long serialVersionUID = 2558887145428876699L;

        //部门名称
        @ApiModelProperty(value = "员工部门名称")
        @Size(min = 2, max = 20, message = "部门名称长度只能在2-20之间")
        private String departmentName;

        List<EmployeeDTO> employeeList;
}
